package com.lemon.components.common.enums;

public enum ResultStatusEnum {

	SUCCESS(0, "成功"),
	FAIL(1,"失败");

	private Integer code;
	private String message;

	/**
	 * 获取全部枚举
	 * 
	 * @return List<ResultCode>
	 */
	public static java.util.List<ResultStatusEnum> getAllEnum() {
		java.util.List<ResultStatusEnum> list = new java.util.ArrayList<ResultStatusEnum>(values().length);
		for (ResultStatusEnum _enum : values()) {
			list.add(_enum);
		}
		return list;
	}

	/**
	 * 获取全部枚举值
	 * 
	 * @return List<String>
	 */
	public static java.util.List<Integer> getAllEnumCode() {
		java.util.List<Integer> list = new java.util.ArrayList<Integer>(values().length);
		for (ResultStatusEnum _enum : values()) {
			list.add(_enum.getCode());
		}
		return list;
	}

	private ResultStatusEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
